﻿<%@ Page Language="C#" MasterPageFile="~/WebManager/manager.Master" AutoEventWireup="true"
    CodeBehind="List.aspx.cs" Inherits="BaoJian.WebManager.Function.Class.List" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="float: left">
        <div style="float: left; width: 300px">
            <asp:Label ID="Msg" runat="server" Visible="true"></asp:Label></div>
        <div style="float: right">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="Add" runat="server"
                Text="新建" OnClick="Add_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="Delete" runat="server" Text="删除" OnClick="Delete_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
           </div>
           
    </div>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" BorderStyle="None"
        BorderWidth="1px" BorderColor="#CCCCCC" BackColor="White" CellPadding="3" Width="100%"
        PageSize="15" AllowPaging="true" OnPageIndexChanging="GridView1_PageIndexChanging">
        <HeaderStyle Font-Size="9pt" Font-Names="宋体" Font-Bold="True" ForeColor="Black" BackColor="SkyBlue">
        </HeaderStyle>
        <SelectedRowStyle Font-Bold="True" ForeColor="White" BackColor="#669999"></SelectedRowStyle>
        <RowStyle ForeColor="Black" BackColor="White"></RowStyle>
        <Columns>
            <asp:BoundField DataField="SID" HeaderText="序号" ReadOnly="True" SortExpression="SID" />
            <asp:BoundField DataField="MainCatalogName" HeaderText="主分类" ReadOnly="True" SortExpression="MainCatalogName" />
            <asp:BoundField DataField="SubCatalogName" HeaderText="次级分类" ReadOnly="True" SortExpression="SubCatalogName" />
            <asp:TemplateField HeaderText="选择">
                <ItemTemplate>
                    <input type="checkbox" id="selectCB" name="selectCB" value="<%# DataBinder.Eval(Container.DataItem,"SID")%>">
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <AlternatingRowStyle BackColor="#E0E0E0" BorderColor="DarkGray" BorderStyle="Dashed"
            BorderWidth="1px" />
    </asp:GridView>
    </div>
</asp:Content>
